# -*- coding: utf-8 -*-
from datetime import datetime

import sqlalchemy as sa

from sqlalchemy.orm import Mapped, mapped_column

from App.common.model import Base, id_key
from App.utils.timezone import timezone


class SysConfig(Base):
    """None"""

    __tablename__ = 'sys_config'

    id: Mapped[id_key] = mapped_column(init=False)
    title: Mapped[str | None] = mapped_column(sa.String(255), default=None, sort_order=2, comment='平台标题')
    remark: Mapped[str | None] = mapped_column(sa.String(255), default=None, sort_order=2, comment='网站说明')
    file_server: Mapped[str | None] = mapped_column(sa.String(255), default=None, sort_order=3, comment='文件服务器统一域名')
    logo_url: Mapped[str | None] = mapped_column(sa.String(255), default=None, sort_order=4, comment='平台LOGO路径')
    copy_right: Mapped[str | None] = mapped_column(sa.String(255), default=None, sort_order=5, comment='平台底部版权信息')
    icp: Mapped[str | None] = mapped_column(sa.String(255), default=None, sort_order=6, comment='平台ICP备案号')
    cyber: Mapped[str | None] = mapped_column(sa.String(255), default=None, sort_order=7, comment='网安备案号')
    cyber_image: Mapped[str | None] = mapped_column(sa.String(255), default=None, sort_order=8, comment='网安图标')
    partner: Mapped[str | None] = mapped_column(sa.JSON(), default=None, sort_order=9, comment='合作伙伴')
